package cn.tedu.ivos.audit.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class AuditVO {
    @ApiModelProperty(value = "审核表编号")
    private Long id;
    @ApiModelProperty(value = "申请表编号")
    private Long applicationId;
    @ApiModelProperty(value = "审核人编号")
    private Long auditUserId;
    @ApiModelProperty(value = "审核状态")
    private String auditStatus;
    @ApiModelProperty(value = "审核次序")
    private Integer auditSort;
    // 下述属性字段为ApplicationVO的属性(除id属性) 因为需要在调度审核页面中显示申请单的详细数据
    @ApiModelProperty(value = "申请人编号")
    private Long userId;
    @ApiModelProperty(value = "申请人姓名")
    private String username;
    @ApiModelProperty(value = "用车开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-8")
    private Date startTime;
    @ApiModelProperty(value = "用车结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-8")
    private Date endTime;
    @ApiModelProperty(value = "驾照图片路径")
    private String imgUrl;
    @ApiModelProperty(value = "出发地")
    private String departureAddr;
    @ApiModelProperty(value = "目的地")
    private String destinationAddr;
    @ApiModelProperty(value = "用车原因")
    private String reason;
    @ApiModelProperty(value = "其他备注信息")
    private String remark;
    @ApiModelProperty(value = "申请表状态")
    private String status;
    @ApiModelProperty(value = "分配的车辆信息")
    private Long vehicleId;
    @ApiModelProperty(value = "驳回原因")
    private String rejectReason;
    @ApiModelProperty(value = "审批人编号集合")
    private List<Long> auditUserIdList;//[106, 103]
    @ApiModelProperty(value = "审批人姓名用,字符串分隔")
    private String auditUsernameList;//"momo, tom"
}
